﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VCC.CMS.ViewModels.LoadCityByCountryVM>" %>
<%@ Import Namespace="VCC.Model" %>
<%if(Model.CountryID == 1) {%>
<option value="">--Tỉnh thành--</option>
<%}else{ %>
<option value="">--City--</option>
<%} %>
<%
    string OPTION_FORMAT = "<option value='{0}'>{1}</option>";
    if (Model != null && Model.Cities != null && Model.Cities.Count() > 0)
    {
        foreach (var item in Model.Cities)
        {
%>
<%= string.Format(OPTION_FORMAT, item.ID, item.Name) %>
<%}
    }%>

